<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%! ArrayList<String> al = new ArrayList<String>(); %>
<%	String user = null,chatmsg =null,time= null;
	user = request.getRemoteAddr();
	chatmsg = new String(request.getParameter("chatmsg").getBytes("iso-8859-1", "utf-8"));
	String outputmsg = "";
	time = new Date().toString().split(" ")[2];
	outputmsg = user + ":" + chatmsg +" "+ new Date().g +"<br>";
	al.add(outputmsg);%>
<textarea cols="60" rows="20" disabled>
	<% for(String str:al){
		out.println(str);
	}%>
</textarea>